from Function import *

class Try(Function):
    def f(self,vec):
        ans = 0
        for i in range(vec.shape[0]):
            ans += vec[i,0]*vec[i,0]
        return ans

b = Try()
a = np.array([[11],[1],[1]])
t = np.array([[1.0],[1.0],[1.0]])
print(Barzilai_Borwein(b,a))
